package com.atguigu05.method_more._02args;

/**
 * ClassName: ArgsTest
 * Package: com.atguigu05.method_more._02args
 * Description:
 *
 * @Author 姜
 * @Create 2023/11/17 16:13
 * @Version 1.0
 */
public class ArgsTest {
    public static void main(String[] args) {
        ArgsTest test = new ArgsTest();
        test.print();
        test.print(1);
        test.print(1, 2);
    }

    public void print(int... nums) {
        System.out.println("111");
    }

    public void print(int i) {
        System.out.println("222");
    }

    public void print(int i, int j) {
        System.out.println("333");
    }
}
